package com.bocomm.tracevisualization.api.vo;

import com.bocomm.tracevisualization.api.result.CodeMessage;
import lombok.Getter;

import java.io.Serializable;

/**
 *
 * @author cxp
 * @version 1.0
 * @date 2020/10/19 19:29
 */

@Getter
public class BaseResult implements Serializable {

    CodeMessage resultCode;

    public void  setSuccess(){
        resultCode = CodeMessage.SUCCESS;
    }
    public void setError(CodeMessage codeMessage){
        resultCode = codeMessage;
    }
}
